package settest;

import java.util.Comparator;
import java.util.HashSet;
import java.util.Set;
import java.util.TreeSet;

public class Test1 {
    public static void main(String[] args) {
        HashSet<Student> hs = new HashSet<>();
        hs.add(new Student("zhangsan", 23));
        hs.add(new Student("lisi", 24));
        hs.add(new Student("zhangsan", 23));
        System.out.println(hs);

    }
}
